#pragma once 
#include <string>
#include <ctime>

//机器数据表
class CMachineData
{
public:
    CMachineData();
    ~CMachineData();
    
    inline CMachineData& operator = (const CMachineData &src)
    {
        if(&src == this)
            return *this;
        
        machStatus = src.machStatus;        //机器状态
        machOutput = src.machOutput;        //机器产量
        prgName = src.prgName;              //程序名
        cycleTime = src.cycleTime;          //循环时间
        alarmCode = src.alarmCode;          //报警代码
        alarmMsg = src.alarmMsg;            //报警信息
        recordTime = src.recordTime;        //时间戳  
    }
public:
    unsigned int machStatus;        //机器状态
    unsigned int machOutput;        //机器产量
    std::string prgName;            //程序名
    float cycleTime;                //循环时间
    std::string alarmCode;          //报警代码
    std::string alarmMsg;           //报警信息
    std::string recordTime;               //时间戳  
};